// 第三个部署
// 1 、需要根据稀有度枚举设置每个稀有度对应的份额 (部署时完成)
//gas: 0.04
const { BigNumber } = require('ethers');

async function main() {
    const feeToken = "0x78867BbEeF44f2326bF8DDd1941a4439382EF2A7"; // 支付token BRC20-USDT 地址
    const _pledgeNFTcontarct = "0x9cB811C7E14c4b7743b580BA607cDD6793f1371F"; // 奋斗狗NFT合约 地址
    const NFTSwapAddress = "0xE21769A7Fc31A1993dE93aDc879477d064C40E88"; // NFTSWAP 合约地址
    const rarities = [1,2,3]; // 稀有度枚举
    const lpAmounts = [1,2,3]; // 稀有度份额

    const LpToken = await ethers.getContractFactory("LpToken");
    const instance = await upgrades.deployProxy(LpToken, [feeToken,_pledgeNFTcontarct,NFTSwapAddress,rarities, lpAmounts], {initializer:'__LpToken_init'});
    await instance.deployed();
    console.log("pledge deployed to:", instance.address);
}

main()
    .then(() => process.exit(0))
    .catch((error) => {
        console.error(error);
        process.exit(1);
    });
